package com.ddstation.crm.institution.service;

import java.util.List;

import com.ddstation.crm.institution.entity.DtHealthManageInstitutionBuyAccountEntity;
import com.ddstation.crm.institution.entity.DtHealthManageInstitutionEntity;
import com.ddstation.crm.institution.model.UserAccountModel;

/**
 * 机构信息
 * @author zhangdifeng
 * @date 2018年2月22日
 */
public interface InstitutionService {
	public DtHealthManageInstitutionEntity get(String institutionId);
	
	/**
	 * 机构名称重复
	 * @param institutionName
	 * @return
	 */
	public boolean dumplicateName(String institutionName);
	public boolean save(DtHealthManageInstitutionEntity institution);
	
	/**
	 * 检索机构的失效日期
	 * @param institutionArray
	 * @return
	 */
	public List<DtHealthManageInstitutionBuyAccountEntity> getEndDt(List<String> institutionArray);
	
	/**
	 * 管理员账号
	 * @param institutionId
	 * @return
	 */
	public List<UserAccountModel> getAccounts(String institutionId);
	
	/**
	 * 生成机构检验设置数据
	 * */
	public void insertTestsetManage(String institutionId);
	
	/**
	 * 根据机构名查询
	 * */
	public int searchSameNameCnt(DtHealthManageInstitutionEntity _a);
}
